package ooday03;

public class Dog extends Animal implements Swim{
    Dog(String name,String color,int age){
        super(name,color,age);
    }
    void lookHome(){
        System.out.println(color +"颜色的"+name+"在看家...");
    }
    void eat(){
        System.out.println(color +"颜色的年龄为"+age+"岁的小狗"+name+"正在吃骨头");
    }
    public void swim() {
        System.out.println(color+ "色的"+age+"岁的狗狗"+name+"正在游泳...");
    }
}
